<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if (isset($_GET['op'])) {
    $url = $_GET['op'];
    $url2 = $_GET['id'];

    if ($url == 'lista') {
        include_once("../Main.php");
        ?>
        <script type="text/javascript"  lang="javascript">
            $("#contenido").load("VistaCursos.php");
        </script>
        <?php

    }    else if ($url == 'actualizar') {
        include_once("../Main.php");
        $_SESSION['id'] = "$url2";
        ?>
        <script type="text/javascript"  lang="javascript">
            $("#contenido").load("VistaCursos_datos.php");
        </script>
        <?php

    } else if ($url == 'crear') {
        include_once("../Main.php");
        ?>
        <script type="text/javascript"  lang="javascript">
            $("#contenido").load("VistaCursos_datos.php");
        </script>
        <?php
    }
}
?>